package cn.com.hhrcw.mapstruct;

import cn.com.hhrcw.entity.EnInfo;
import cn.com.hhrcw.params.EnInfoAdminParams;
import cn.com.hhrcw.vo.EnInfoAdminVO;
import org.jeecg.common.converter.BaseConvert;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;

/**
 * @author admin
 */
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface EnInfoAdminConvert extends BaseConvert<EnInfo, EnInfoAdminParams, EnInfoAdminVO> {

    /**
     * toVO
     * @param entity
     * @return
     */
    @Override
    @Mapping(target = "banFlag",source = "enabled")
    EnInfoAdminVO toVO(EnInfo entity);
}

